-- GENERATED SPELL FOR [Gorloc Gibberer] --


function spell0_25686(pUnit, Event) --@Deep Dredge,Self--
pUnit:FullCastSpellOnTarget(50520,pUnit)
pUnit:RegisterEvent('Sorts_25686', 2000, 1)
end

function spell1_25686(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15576,pUnit)
pUnit:RegisterEvent('Sorts_25686', 625, 1)
end

function Sorts_25686(pUnit, Event)
local choix_sorts_25686 = math.random(0, 1)
if choix_sorts_25686 == 0 then
pUnit:RegisterEvent('spell0_25686', 1, 1)
end
if choix_sorts_25686 == 1 then
pUnit:RegisterEvent('spell1_25686', 1, 1)
end
end

function mob25686_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25686', math.random(1500, 3000), 1)
end

function mob25686_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25686_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25686_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25686, 1, 'mob25686_Action')
RegisterUnitEvent(25686, 2, 'mob25686_Leave')
RegisterUnitEvent(25686, 3, 'mob25686_Kill')
RegisterUnitEvent(25686, 4, 'mob25686_Die')
